#ifndef CATEGORYINFO_H
#define CATEGORYINFO_H
#include <QString>
#include <QXmlStreamReader>
#include <QXmlStreamWriter>
#include <QJsonObject>

class CategoryInfo
{
public:
    CategoryInfo();

private:
    int             m_nKey;
    QString         m_strName;

public:
    bool writeXML(const QXmlStreamWriter &writer);
    bool ReadXML(QXmlStreamReader &reader);

    QJsonObject toJson();
    void    fromJson(QJsonObject obj);
};

#endif // CATEGORYINFO_H
